import axios from 'axios';
let base = 'manager/report';


/**
 * 报告列表
 * **/
export const getReportsList = params => {
    return axios.post(`${base}/list`, params);
};
/**
 * 通知书列表
 * **/
export const getNoticeList= params => {
    return axios.post(`${base}/notice_list`, params);
};


/**
 * 报告详情
 * **/
export const getReportsDetail = params => {
    return axios.post(`${base}/detail/`, params);
};

/**
 * 编辑报告
 * created by xwang 2018.09.26 创建方法
 * **/
export const updateReport = params => {
    return axios.post(`${base}/report_update`, params);
};

export const returnReport = params =>{
    return axios.post(`${base}/return_report`,params);
}

export const saveScanId = params =>{
    return axios.post(`${base}/save_scanId`,params);
}

/**
 * 生成并下载报告word
 * created by xwang 2018.09.26 创建方法
 * **/
export const createNoticeFile = params =>{
    return axios.post(`${base}/create_notice_file`,params);
}

export const passNotice = params =>{
    return axios.post(`${base}/pass_notice`,params);
}


export const issueReportNotice = params =>{
    return axios.post(`${base}/issue_notice`,params);
}
